Imports Security.Business

Partial Class FrontEnd_Login
    Inherits ECGPage

    Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click
        Try
            Dim redirectTo As String

            redirectTo = LoginService.ValidateCredentials(txtUsuario.Text, txtPassword.Text)

            If Not String.IsNullOrEmpty(redirectTo) Then
                Response.Redirect(redirectTo)
            End If

        Catch ex As Exception
            HandleError(ex)
        End Try
    End Sub
End Class
